include "base.thrift"

struct User{
    1: i32 user_id;
    2: string nickname; // 昵称
    3: string avatar; // 头像
}

struct Member{
    1: User user;
    2: i32 course_id;
    3: string role;
}

struct ProfileMeResponse{
    1: base.Meta meta;
    2: User user;
}

struct ProfileMeRequest{
    1: i32 mock_login(api.query="mock_login");
}

service UserCenter{
    ProfileMeResponse ProfileMe(1: ProfileMeRequest req)(api.post="/profile/me")
}